<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="rootPath" value="${pageContext.request.contextPath}" />
<%
String theme_val="default";
Cookie myCookie[]=request.getCookies();
if(myCookie!=null){
	for(int n=0;n<=myCookie.length-1;n++){
		Cookie newCookie= myCookie[n];
		if(newCookie.getName().equals("theme")){
			theme_val=newCookie.getValue();
			break;
		}
	}
}
%>
<c:set var="theme" value="<%=theme_val %>" />